package com.yiyuzi.admin.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yiyuzi.admin.common.domain.PageResultDTO;
import com.yiyuzi.admin.user.domain.dto.*;
import com.yiyuzi.admin.user.domain.entity.UserEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yiyuzi
 * @date 2021/5/6 22:16
 */

@Service
public interface UserService extends IService<UserEntity> {

    String login(UserLoginDTO userLoginDTO);

    boolean logout(String token);

    boolean save(UserAddDTO addDTO);

    boolean update(UserUpdateDTO updateDTO);

    boolean isUserNameExist(String userName);

    PageResultDTO<UserDTO> findPage(UserQueryDTO userQueryDTO);

    boolean deleteById(Long id);

    boolean deleteList(List<Long> list);
}
